file(GLOB srcs_bsps "${CMAKE_CURRENT_LIST_DIR}/bsp/*.c")
file(GLOB srcs_console "${CMAKE_CURRENT_LIST_DIR}/console/*.c")
file(GLOB srcs_internet "${CMAKE_CURRENT_LIST_DIR}/internet/*.c")
file(GLOB srcs_protocol "${CMAKE_CURRENT_LIST_DIR}/protocol/*.c")
file(GLOB srcs_1276 "${CMAKE_CURRENT_LIST_DIR}/sx1276/sx1276_src/*.c")

idf_component_register(SRCS "${srcs_bsps}" "${srcs_console}" "${srcs_internet}" "${srcs_protocol}" "${srcs_1276}" "main.c"
                    INCLUDE_DIRS "." "bsp" "console" "internet" "protocol" "sx1276/sx1276_inc"
                    REQUIRES driver console json esp_eth nvs_flash)